package lei;
public class data {
    public int year;
    public int month;
    public int day;
    public data(int year,int month,int day){
    	this.setYear(year);
    	this.setMonth(month);
    	this.setDay(day);
    }
    public String toString(){
		return year+"-"+month+"-"+day;
	}
	public int getYear(){
		return year;
	}
	public void setYear(int n){
		year=n;
	}
	public int getMonth(){
		return month;
	}
	public void setMonth(int n){
		month=n;
	}
	public int getDay(){
		return day;
	}
	public void setDay(int n){
		day=n;
	}
}